feat: tech debt, prompt optimization, and stability fixes - #3
Merged
Conversation
Delete scheduleRegroup() and all chrome.tabs.on* listeners that fired LLM calls on every tab create/remove/URL change. Remove silent doGrouping on app mount and dead storage.onChanged listener. LLM calls now fire only on explicit user action (Refresh, slider, chat). Also remove blocking captureVisibleTab from get-tabs handler — tabs return instantly instead of waiting for per-window screenshot capture. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Rewrite SYSTEM_PROMPT from ~600 to ~200 words — dense numbered rules, no redundancy. Compact tab serialization (id|title|host/path). Sweep and refine prompts skip tabDescriptions/tabTags to save output tokens. Set per-method max_tokens: groupTabs 4096, sweep 1024, refine 2048. Reorder model options: Sonnet (recommended), Haiku (cheapest), Opus. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Storage.getConfig() now falls back to DEFAULT_CONFIG (includes contextEnrichment). get-config handler auto-populates API key from ENV_CONFIG if storage is empty, eliminating race with onInstalled. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Clicking a child-group tile in a sidebar/unfocused group passed the child ID as focusedGroupId, which doesn't exist as a top-level group, producing an empty layout. Now detects sibling-group children and navigates to the parent group instead. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
scheduleRegroup()and allchrome.tabs.on*listeners. LLM calls now fire only on explicit user action (Refresh button, specificity slider, chat). Remove blockingcaptureVisibleTabfromget-tabs— tabs return instantly.max_tokens(4096/1024/2048) instead of a blanket value. Sweep/refine skiptabDescriptions/tabTagsto reduce output tokens.Storage.getConfig()usesDEFAULT_CONFIGas fallback.get-confighandler auto-populates API key fromENV_CONFIGif storage is empty, eliminating race withonInstalled.Test plan
🤖 Generated with Claude Code